//
//  ProjectSearchCell.swift
//  HuaYun
//
//  Created by enghou on 2018/11/29.
//  Copyright © 2018 xyxorigation. All rights reserved.
//

import UIKit

class ProjectSearchCell: UITableViewCell {
    @IBOutlet weak var nameLbl: UILabel!
    @IBOutlet weak var numberLbl: UILabel!
    var ifselected:  Bool = false
    var _model: JSON?
    var model: JSON? {
        set{
            _model = newValue
            nameLbl.text = _model?.contents?["gsProjName"]?.rawString()
            numberLbl.text = _model?.contents?["gsProjNo"]?.rawString()
            if numberLbl.text?.count == 0  {
                numberLbl.text = _model?["projectNumber"].string
            }
        }
        get{
            return _model
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
